﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BusinessObject;
using BusinessLayer;
namespace RestHouseReservation
{
    public partial class SignUp : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            UserDao Userobj = new UserDao();
            Userobj.Name = TextBox1.Text;
            Userobj.Rank = DropDownList1.SelectedValue.ToString();
            Userobj.PaNumber = TextBox2.Text;
            Userobj.Email = TextBox3.Text;
            Userobj.Phone = TextBox4.Text;
            Userobj.Password = TextBox5.Text;
            string b = "";
            UsersLogic log = new UsersLogic();
            log.AddData(Userobj);
            Server.Transfer("AdminHome.aspx");
        }
    }
}